home *** CD-ROM | disk | FTP | other *** search
-
- LOTTO-MAGIC ver 3.0
- ___________________
-
-
-
-
- by,
-
- Gary J. Vigue
- PO BOX 1718
- Waterville, Maine 04901
-
-
-
-
-
-
-
-
-
- DISCLAIMER
-
- IN NO EVENT WILL THE AUTHOR BE LIABLE TO YOU FOR ANY DAMAGES,
- INCLUDING ANY LOST PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR
- CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR INABILITY TO
- USE THESE PROGRAMS, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
- USE AT YOUR OWN RISK!
-
- ----------------------------------------------------------------
-
-
- REGISTRATION
-
- You are encouraged to copy and share this program with others.
- If you find it to be useful, I trust you to send a $10 payment.
- Upon receipt of your payment, you will become a registered owner
- and receive the latest version of LOTTO-MAGIC. This program is
- distributed under the Shareware concept, and is not public
- domain. If you use this program you are obligated to remit the
- $10.00 registration fee requested. Please support Shareware!
-
-
- PERMISSION TO COPY:
-
- Individuals are granted permission by the author to freely copy
- the LOTTO-MAGIC programs and documentation for their own use or
- to share with others, so long as no price or other consideration
- is charged.
-
- Shareware distributors must obtain written permission to copy and
- distribute LOTTO-MAGIC. NO EXCEPTIONS.
-
- Computer clubs, public bulletin board systems and other non-
- profit organizations are granted permission by the author to
- freely copy the LOTTO-MAGIC programs and documentation and share
- them with their members, so long as:
-
- 1. No price or other consideration is charged, however, a
- distribution cost may be charged for the cost of the diskette, so
- long as it is not more than $3 total.
-
- 2. Club members are informed of the user-supported concept and
- encouraged to support it with their donations.
-
- 3. The program or documentation are not modified in any way and
- are distributed together.
-
-
- -----------------------------------------------------------------
-
-
- INTRODUCTION
-
- LOTTO-MAGIC lets you track the state lottery by inputing past
- winners into its database. Your computer uses this database to
- calculate the next likely winning number. (Not random generation)
- This program works with any lottery using from two through six
- digits. You can track 1-5 different lotteries at the same time.
- You can personalize each lottery separately. Each digit can range
- 0-99. You tell the program what the highest and lowest numbers
- for your state's lottery and the program customizes that database
- to your specifications. Available options include Algebraic
- Calculation, Astrological Calculations, Random Calculations,
- Frequency Reports (high & low) and Graphs, Color Setup, Database
- Customization, Browse and Find Data, Database Personalization, and
- Print options. Printer is optional.
-
- A remarkable feature of this program is the Personalize option.
- Numbers generated by the Algebraic Calculations can be made
- unique to the each individual computer. You enter your Social
- Security No. (or any 9 digit number) using the Utility Option and
- that database is configured to your own unique algebraic set of
- calculations. This option also lets your reset the calculations
- to the origional format. This means that if you gave someone an
- origional copy of this program and they entered the same numbers
- into the database, the calculations would be different. This is
- because each time you Personalize a data base, the algebraic
- calculation is modified slightly. The odds of two computers
- generating the same numbers are astronomical! You have your own
- customized formula.
-
- This program is quite easy to operate, so this manual does not go
- into great detail You will find that most features are self
- explanitory. If you run into problems, read these instructions.
- If you still have trouble, write to the author. Please consider
- registering this program if you find it useful.
-
- -----------------------------------------------------------------
-
-
- GETTING STARTED
-
- To run the program type MAGIC <ENTER>. After the opening
- screen, you will have to select which type of lottery you want to
- play. (2 through 6 digit) After you make your selection, you
- will go to the main menu where you have several options:
-
-
- UTILITIES/SETUP
-
- You must run this option before you can do anything with any of
- the lottery options. You have four choices at the Utility menu.
- The first (Optional) is the color setup. The selections are as
- shown below.
-
- 1 2 3 4 5 6 7 8 9
-
- Blue Green Lt Blu Red Purple Orange White Black Yellow
-
- First select a forground color (1-9), background color (1-9) and
- window color (1-9). The program displays the select colors and
- ask if that is what you want. Answer y or n. Forground and
- background colors can not be the same. Window can not be black
- (8) or same as background color. Window color is also color of
- graph and always has black background.
-
-
- The second option, Kill Database, means just that. You are
- prompted to enter the database you want purged, then all
- information in that database is destroyed, including Personalized
- information and Lottery setup data. You will have to select the
- Lottery set up option from the utility menu before you can use
- this database again. If you want to start a lottery (2-6) from
- the scratch, this is the option to select.
-
- Your third option at the Utiity menu is Lottery. This part is a
- little tricky. First, you have to choose which lottery you want
- to configure (2-6). #2 is two digit, #3 is three digit, etc.
- Next you have to select a number format:
-
- ┌──────────────────────── SAMPLE SCREEN ────────────────────────┐
- │ │
- │ 1 23 45 67 89 99 0000000 thru 9999999 │
- │ Format #1 Format #2 │
- │ (Duplicates not allowed) (Duplicates allowed) │
- │ ( 6 individual numbers) (One large number) │
- │ │
- │ Select a format from above for this lottery (1 or 2) ? │
- └───────────────────────────────────────────────────────────────┘
-
- There are two types of lotteries supported here. The first is
- one where 2-6 individual numbers are selected. An example of a 6
- digit number of this type would be:
-
- 5 12 17 19 31 59
-
- Each number is different and they are in sequence. This is
- refered to as Format #1. Individual entries can range from 0 to
- 99. You set the limits later on. Duplicate entries are not
- permitted in this type of lottery. (i.e. #17 could not have
- appeared twice.)
-
- If Format #1 is select, the program will prompt you for the
- lowest number and the highest number that can be selected. The
- Maine Lottery ranges from 1 to 40. So that is what might be
- entered here. What this means, is that the smallest individual
- number could be a 1, and the largest a 40. Example:
-
- ┌──────────────────────────────── SMALLEST
- │ ┌────────────── LARGEST
- │ │
- 1 7 19 21 33 40
-
- The smallest number has to be 0 or greater, and at least 9 less
- then the largest. Mininum entries are 0 and 9.
-
- The second type of lottery supported is one where single number
- (2-6 digits) is selected. An example of a 6 digit number of this
- type would be:
-
- "757961"
-
- This if Format #2. Notice that there are two sevens. This
- format accepts duplicate entries. Individual entries can be from
- 0 to 9. These limits are fixed. If you select Format #2, the
- program will confirm that this is what you want for this lottery
- and return to the Utiliity menu.
-
- NOTE: With the Format #2 option selected for a database, you can
- not use the Frequency option at the calculation menu. Since the
- Format #2 database contains entries that are one large number,
- there are too many possible combinations (up too 999999 for six
- digit database). Thus frequency calculations are not possible.
- You can use the Graph option from the main menu to see entries
- broken down into their individual digit frequencies.
-
- And the last utility option, Personalize, lets you customize the
- algebraic formula that is used to calculate the Algebraic picks.
- When this option is selected you are prompted to enter the
- lottery you want Personalized then your Social Security Number.
- The program suggest using your SS# since it is unique. Any 9
- digit number will do of course. Each lottery can be Personalized
- individually with no effect on the calculation formulas of the
- others. For example, if you are unhappy with the numbers that
- are generated by the Algebraic calculation for the Pick Six
- lottery, you can use this option. The numbers generated for the
- Pick Six will be different, but the Pick Two through Pick Five
- selections will not. Each has to be Personalized separately. If
- you wish to have the program in its origional configuration,
- simply enter ORIGIONAL in place of the nine digit number. This
- resets calculations to the default calculation set.
-
- If you give a copy of the program to a friend, you can
- personalize Two through Six so that his copy of the program will
- generate different numbers.
-
- So how can this be Algebraic Calculation if it can be changed at
- a whim? Face it, there is no magic calculation that will get you
- the number every time. The Algebraic Calculation tries to
- improve your odds. The calculations use certain variables that
- can be changed without changing the basic structure of the
- formula. Number frequency still plays in important role in the
- calculations and the basic formula remains the same.
-
-
- -----------------------------------------------------------------
-
-
- - FROM THE MAIN MENU -
-
- CALCULATE
-
- Here you can select from four methods of number generation;
- Astrological, Algebraic, Random, and Frequency.
-
- The astrological option uses today's date and your birthdate to
- computer your lucky number according to the stars. This is not a
- random number generator. Your number will change from day to
- day. Don't expect big changes in the numbers from one day to the
- next since they change slowly. If you enter the same date and
- birthdate the number will always be the same. Astrological picks
- require you to enter your birthdate and today's date. Enter them
- in the mm,dd,yy format. Example: If your birthdate is June 7th,
- 1959, then your will enter 6,7,59. You MUST include the commas
- between the numbers.
-
- The Astrological and Random Calculations ask for the highest
- number to be generated. Example: If you enter 40, then the
- number in the last column will not exceed 40 as this sample
- shows.
-
- 3 5 24 27 31 39
-
- Random Picks are just that. Numbers generated at random. I have
- included many subroutines that should ensure a well randomized
- output.
-
- The Algebraic Calculations are compiled by analyzing existing
- numbers that you have entered into the database as past winners.
- This is not a random number generator. The technique is based
- partly on the frequency of numbers, so numbers that have occured
- more than others have a better chance of being selected by this
- method. This does not mean that the most frequently picked
- winners will be selected every time. There must be at least 5
- entries in the database for the program to generate a Algebraic
- Calculation. The Algebraic Calculation requires no additional
- input other than the numbers (5 minimum) in that particular
- database.
-
- The numbers generated by the Algebraic Calculations can be made
- unique to your individual computer. Go to the Utility menu and
- select Personalize database. (see Utility Options) The formula
- use for calculation will be modified to a unique set. This means
- that if you gave someone a copy of this program and they entered
- the same numbers into the database, the calculations would be
- different. This is because each time a data base is
- Personalized, the algebraic calculation is modified slightly.
- The odds of two computers generating the same numbers are very
- slim, depending also on how many entries are in the database.
- You have your own customized formula. The more entries the
- better your calculations will be too.
-
- If you select Frequency Calculation, the program will prompt you
- for the frequency type; Most or Least frequent. The Most
- Frequent calculations will report the six most frequently
- occuring winning numbers. If two or more numbers are tie for the
- 6th position, the program selects the highest number. Numbers are
- displayed in decending order of frequency. (most frequent first)
- Least Frequent numbers are displayed in accending order of
- frequency (least frequent first). If two or more numbers are tie
- for 6th position, the computer select the smallest number.
-
- NOTE: With the Format #2 option selected for a database, you can
- not use the Frequency option at the calculation menu. Since the
- Format #2 database contains entries that are one large number,
- there are too many possible combinations (up too 999999 for six
- digit database). Thus frequency calculations are not possible.
- You can use the Graph option from the main menu to see entries
- broken down into their individual digit frequencies.
-
- DATABASE MANAGEMENT
-
- This is where you enter the winning numbers into the database.
- You must follow the rules for the particular lottery as you have
- configured them using the utility option.
-
- The window on the left side of the display will show you the last
- five entries. The smaller window in the lower left is where you
- will make/change entries.
-
- Use the space bar to toggle the menu selections and press enter or
- press the first letter of the selection you want. Pressing "+" or
- "-" keys lets you scroll through the database entries that appear
- in the window on the left.
-
- When you make entries into the database, you must follow the
- format restrictions as you have them set when you ran the utility
- option. If you entered 40 as the largest entry for the six digit
- lottery, then the program will no accept anything higher. This
- goes for the smallest number also. Format #1 will not accept
- duplicate entries, while Format #2 will but is limited by a fixed
- range (0-9). If possible, enter them in chronological order
- starting with the oldest entry as number one. You can get a
- printout of past winning numbers from most stores that sell
- lottery tickets. While in the database you can enter/edit/print
- numbers in the database. Each entry number is one set of lottery
- picks. If you are adding to the six digit database, the program
- will prompt you for six entries. To edit an entry, simply enter
- the number of the record that you want to change. The print
- option lets you display to screen (for those of you that do not
- have a printer) or to the printer. As an added bonus, the print
- option gives you the averages for numbers in each column at the
- bottom of the screen/printout. You can not Print/View if there
- are no records in the data base for that particular lottery.
-
-
- SELECT LOTTERY
-
- The Select Lottery option lets you change lottery types. If you
- are working on the six digit lottery and want to input some
- number for the four digit lottery, use this option and continue
- as usual.
-
-
- VIEW/GRAPH FREQUENCY DATA
-
- This option lets you see how often individual numbers were
- selected by your state lottery based on the information you input
- into the database. The graphic display of frequency distribution
- lets you see what is happening a little more clearly. THIS
- DISPLAY WILL ONLY GO UP TO NUMBER 70. DIGITS ABOVE 70 WILL BE
- IGNORED. If you have only a few entries in you database, you will
- get a very small graph. The program automatically locates the
- largest number in you database and does not try to graph anything
- beyond that. Since this is the Maine lottery again, this graph
- only goes up to number 40. After you have made many entries, and
- one of the numbers comes up more then 20 times, the graph will be
- reduced by 1/2. This is because of the limited room on the
- display.
-
-
- SAMPLE GRAPH
- 10 ┬──────────────────────────────────────────┐
- ┼────────────▐─────────────▐───────────────┤
- ┼────────────▐─────▐─▐────▐▐─▐────▐────────┤
- ┼─▐────────▐─▐─▐───▐▐▐────▐▐─▐────▐────────┤
- ┼─▐─▐──────▐─▐─▐───▐▐▐▐───▐▐─▐─▐──▐▐▐──────┤
- 5 ┼─▐─▐─▐▐▐─▐▐▐▐─▐▐▐─▐▐▐▐──▐▐▐─▐─▐▐▐▐▐▐─▐▐───┤
- ┼─▐─▐▐▐▐▐▐▐▐▐▐─▐▐▐─▐▐▐▐▐─▐▐▐─▐─▐▐▐▐▐▐▐▐▐▐▐─┤
- ┼─▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐─▐▐▐▐▐▐▐▐▐▐▐─▐▐▐▐▐▐▐▐▐▐▐─┤
- ┼─▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐─┤
- ┼─▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐▐─┤
- ┴┼────┼────┼────┼────┼────┼────┼────┼────┼─┘
- 0 5 10 15 20 25 30 35 40
-
-
- The numbers below the graph indicate each fifth digit and the
- numbers on the left side indicate the number of times each number
- appears in the database. The bar above the number 5 pointer
- shows a graphical representation of the frequency of number 5.
-
- As your database increases in size, so will the graph. At a
- certain point, when the graph reaches the top of the screen, the
- graph will automatically change to a different scale. The
- horizontal divisions will increase in value by 5X each time the
- graph rolls over.
-
- NOTE: If you graph a Format #2 type database, the entries will
- be broken down into their individual components. For example the
- three digit number 367 would be treated like three separate
- numbers. It would show one 3, one 6 and one 7 for that entry.
- The Format #2 graphs will display numbers 0-9 only.
-
- In the future releases of LOTTO MAGIC we will to enhance the
- graphics for a better, more meaningful display. (Another good
- reason to register for the latest copy of LOTTO MAGIC!)
-
-
- DATA FILES
-
- Each lottery (pick 2-6) generates three files. Data is stored in
- "MAGIC2.DTA", "MAGIC2.DAT", "TWO.INS", "MAGIC3.DTA",
- "MAGIC3.DAT", THREE.INS, on through number SIX. If you want to
- purge the databases, simply delete the corresponding files. The
- next version of LOTTO-MAGIC may include a maintenance utility for
- repairing/purging databases.
-
- The config option generates the ".INS" files and "CONFIG.DAT".
-
-
- ----------------------------------------------------------------
-
-
- VERSIONS 1.0 - 1.3
-
- Origionally, this program was for my personal use only. LOTTO
- MAGIC version 1.0, version 1.1, version 1.2, and version 1.3 were
- were never released for distribution. The program went through
- many extensive changes during this period with many additional
- features added to version 1.4 which was the first to be released
- as Shareware.
-
-
- VERSION 1.5 CHANGES:
-
- Version 1.4 had a bug in the database screen display. If more
- then 18 records were displayed the program would crash.
-
- Also, corrected another problem that caused the program to crash.
- If the edit option was selected in the database menus and the
- edit was aborted, the program did not close the files. When any
- other database functions were selected after the abort, the
- program would try to open files that were already open.
-
- The version 1.4 random number generation had a tendency to come
- up with a predictable series of selections. Version 1.5 random
- number generator has been enhanced to correct this.
-
- VERSION 2.0 CHANGES:
-
- With version 2.0, the VIEW/GRAPH OPTION was added. Though
- lacking in a few areas, this was a great inprovement in the
- program. The HELP/INFORMATION was also added for folks who don't
- know who to read or print the manual.
-
- VERSION 2.1 CHANGES:
-
- The Utility/Setup program was added so that databases could be
- customized, and screen colors changed. Quite a few additions
- were added in the program that should keep databases in
- compliance with the selected configurations. The Graph was
- improved. Later, before official release of version 2.1, the pop
- up menu windows were added and Utility Color selection modified
- to support window color selection. Also added Personalized
- lottery option at Utility menu.
-
- VERSION 2.1 CHANGES:
-
- View/Graph option was changed so that the long list of numbers is
- no longer displayed. This display just cluttered the screen and
- slow the graph display. Personalize Option (Utility setup
- program) was enhanced to let you customize your lottery using
- your SS# or any 9 digit number. Also corrected some problems in
- the printer output display for format 1 type databases. The
- numbers printed were not in the proper format.
-
- VERSION 2.2 CHANGES:
-
- This version was enhanced to a more reliable calculation method
- for Algebraic Calculations.
-
- VERSION 2.3 CHANGES:
-
- Found a small glitch in the Algebraic Calculations that would
- cause the program to select actual winning combinations from
- previous drawings in the database. This problem was picked up on
- a copy of the program that had been personalized with a social
- security number. This release contains a corrected formular.
-
- VERSION 3.0 CHANGES:
-
- Made major changes in the Database module. Aside from being a
- seperate module now, a window for Display/Browse/Find features
- was added. The program is now in three executable modules.
- Removed the frequency option from the Format #2 database menu.
- Corrected Format #2 databases so that they would accept number 0
- in any position. Previous versions would not allow 0 in first
- position.
-
-
-
- ----------------------------------------------------------------
-
-
- BUGS?
-
- If you encounter any bugs in this program, please write. I have
- gone through the program many times debugging, but you never
- know...
-
-